package com.axc.gallery2.dbhelper;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 封装本地数据库相册信息
 *
 */

public class AlbumInfo implements Serializable {	

	public static final String SERALIZABLEKEY = "axc.album.seralizableKey"; 
	public static final long serialVersionUID = -7622161892077627984L;
	public static final int LOCALALBUMID = -2;
	public static final int NETALBUMID = 1;
	public static final int PHONEALBUMID = -1;
	public static final int CustomALBUMID = -3;

	public static final String ALBUMID = "ALBUMID";
	private String albumName;
	private int albumId;
	private List<ImageInfo> albumItems;
	private String albumDescription;
	public String getAlbumName(){
		return this.albumName;
	}

	public void setAlbumName(String albumName){
		this.albumName=albumName;
	}

	public int getAlbumId(){
		return this.albumId;
	}

	public void setAlbumId(int albumId){
		this.albumId=albumId;
	}

	public List<ImageInfo> getAlbumItems(){
		return this.albumItems;
	}
	public void setAlbumItems( List<ImageInfo> albumItems){
		this.albumItems=albumItems;
	}
	
	public int AlbumInfo_Count;

	public AlbumInfo(){		
		this.albumItems=new ArrayList<ImageInfo>(); 	
	}

	public AlbumInfo(int albumId,String albumName,String albumDescription,List<ImageInfo> albumItems){		
		this.albumItems=albumItems; 	
		this.albumId=albumId;
		this.albumName=albumName;
		this.albumDescription=albumDescription;
	}

	public void removeItem(int position){
		this.albumItems.remove(position);
	}

	public void clear(){
		this.albumItems.clear();
	}

	public void addItem(ImageInfo item){
		this.albumItems.add(item);
	}

	public void setDescription(String description) {
		this.albumDescription = description;
	}

	public String getDescription() {
		return albumDescription;
	}

	@Override
	public String toString() {

		return albumName;
	}




}
